import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state: {
    // 这是存储的路由
    menuList: [...constantRoutes]
  },
  mutations: {
    updataMenuList(state, list) {
      // 把静态路由 和 动态路由 拼接到一起
      state.menuList = [...constantRoutes, ...list]
    }
  }
}
